﻿# -*- coding: utf-8 -*-
__author__ = 'Liantian'

from django.conf.urls import patterns, url



from .views import Index
from .views import AjaxEditEmail
from .views import AjaxValidationEmail
from .views import AjaxValidationUsername
from .views import AjaxEditPassword
from .views import AjaxEditProfile
from .views import AjaxEditBillingAddress
from .views import GetTemplate
# from .views import SignIn
from .views import AjaxValidationHuman
from .views import AjaxSignIn
from .views import AjaxSignUp
from .views import AjaxResetPassword
from .views import AjaxValidationEmailForResetPassword
from .views import AjaxSubPlan
from .views import AjaxChangeRenewStatus
from .views import AjaxChangeSub


from .views import ProfileContent
from .views import EditProfileContent
from .views import SidebarContent
from .views import PlanContent
from .views import SubscriptionContent


urlpatterns = patterns('',
   url(r'^$',Index.as_view(),name="geek-vpn-index"),
   # url(r'^SignIn$',SignIn.as_view(),name="geek-vpn-signin"),
   url(r'^ajax/validation_email/$',AjaxValidationEmail.as_view(),name="geek-vpn-validation-email"),
   url(r'^ajax/validation_email_for_reset_password/$',AjaxValidationEmailForResetPassword.as_view(),name="geek-vpn-validation-email-for-reset-password"),
   url(r'^ajax/validation_username/$',AjaxValidationUsername.as_view(),name="geek-vpn-validation-username"),
   url(r'^ajax/validation_human/$',AjaxValidationHuman.as_view(),name="geek-vpn-validation-human"),
   url(r'^ajax/edit_email/$',AjaxEditEmail.as_view(),name="geek-vpn-edit-email"),
   url(r'^ajax/sign_in/$',AjaxSignIn.as_view(),name="geek-vpn-sign-in"),
   url(r'^ajax/sign_up/$',AjaxSignUp.as_view(),name="geek-vpn-sign-up"),
   url(r'^ajax/reset_password/$',AjaxResetPassword.as_view(),name="geek-vpn-reset-password"),
   url(r'^ajax/edit_password/$',AjaxEditPassword.as_view(),name="geek-vpn-edit-password"),
   url(r'^ajax/edit_profile/$',AjaxEditProfile.as_view(),name="geek-vpn-edit-profile"),
   url(r'^ajax/edit_billing_address/$',AjaxEditBillingAddress.as_view(),name="geek-vpn-edit-billing_address"),
   url(r'^ajax/get/(?P<pagename>.+)/$',GetTemplate.as_view(),name="geek-vpn-get-template"),
   url(r'^ajax/get_profile_content/$',ProfileContent.as_view(),name="geek-vpn-get-profile-content"),
   url(r'^ajax/get_edit_profile_content/$',EditProfileContent.as_view(),name="geek-vpn-get-edit-profile-content"),
   url(r'^ajax/get_sidebar_content/$',SidebarContent.as_view(),name="geek-vpn-get-sidebar-content"),
   url(r'^ajax/get_plan_content/$',PlanContent.as_view(),name="geek-vpn-get-plan-content"),
   url(r'^ajax/get_sub_content/$',SubscriptionContent.as_view(),name="geek-vpn-get-subscription-content"),
   url(r'^ajax/get_sub_plan/$',AjaxSubPlan.as_view(),name="geek-vpn-sub-plan"),
   url(r'^ajax/change-renew-status/$',AjaxChangeRenewStatus.as_view(),name="geek-vpn-change-renew-status"),
   url(r'^ajax/change-sub/$',AjaxChangeSub.as_view(),name="geek-vpn-change-sub"),


   url(r'^logout/$', 'django.contrib.auth.views.logout_then_login',{'login_url': '/GeekVPN/'},name="geek-vpn-logout"),


   # url(r'^EditPage/(?P<page_id>\d{1,3})/$',EditPage.as_view(),name="wiki-edit-page"),

    # url(r'^worker/(?P<workerid>\d{1,3})/$',WorkerIndex.as_view(),{"project_show":False}),

    #
    # ## 快接配线架
    # url(r'^EditSheetRJ/(?P<sheet_id>\d{1,5})/$',EditSheet.as_view(),name="npp-edit-rj"),
    # url(r'^AjaxSheetRJ/$',AjaxSheet.as_view(),name="npp-ajax-rj"),
    # url(r'^QuickAddRJ/(?P<place_id>\d{1,5})/$',QuickAdd.as_view(),name="npp-quickadd-rj"),
    #
    # ##  110配线架
    # url(r'^EditSheetFish/(?P<sheet_id>\d{1,5})/$',EditSheet.as_view(),{"isRJ_notFish" : False},name="npp-edit-fish"),
    # url(r'^AjaxSheetFish/$',AjaxSheet.as_view(),{"isRJ_notFish" : False },name="npp-ajax-fish"),
    # url(r'^QuickAddFish/(?P<place_id>\d{1,5})/$',QuickAdd.as_view(),{"isRJ_notFish" : False},name="npp-quickadd-fish"),
    #
    # ## 支行列表
    #
    #
    # url(r'^PlaceList/$',PlaceList.as_view(),name="npp-place-list"),
    # url(r'^$',PlaceList.as_view(),name="npp-index"),


    # url(r'^ViewPlanel/(?P<planel_id>\d{1,3})/$',ViewPlanel.as_view(),name="view-planel"),
    # url(r'^EditPlanel/(?P<planel_id>\d{1,3})/$',EditPlanel.as_view(),name="edit-planel"),
    # url(r'^ViewPlaceSheet/(?P<place_id>\d{1,3})/$',ViewPlaceSheet.as_view(),name="view-planelsheet"),


)